package com.lebang.mapper;

import com.lebang.domain.TaskRouseDetail;
import com.lebang.example.TaskRouseDetailExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * TaskRouseDetailMapper继承基类
 */
@Mapper
public interface TaskRouseDetailMapper extends MyBatisBaseDao<TaskRouseDetail, Long, TaskRouseDetailExample> {

    void updatetodaytotal();

    List<TaskRouseDetail> selectFirstIdList(@Param("version") String version, @Param("appStore") String appStore);

    List<Long> selectIdList(@Param("id") Long id, @Param("star") LocalDateTime star, @Param("end") LocalDateTime end);

    List<TaskRouseDetail> selectIdAllList(@Param("version") String version, @Param("appStore") String appStore);

    void updateCount(@Param("id") Long id, @Param("count") int count);

    void addFail(@Param("rouseDetailId") long rouseDetailId);

    void addSuccess(@Param("rouseDetailId") Integer rouseDetailId);

    List<String> selectGroupByAppName();
}